﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DonationEdit.aspx.cs" Inherits="ZHDJ.PersonalCenter.Module.Donation.DonationEdit" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../Resource/ueditor/ueditor.config.js"></script>
    <script src="../../../../Resource/ueditor/ueditor.all.min.js"></script>
</head>
<body>
    <form id="form1" runat="server" style="background-color: #0000FF">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" ShowBorder="false" ShowHeader="false" AutoScroll="true" runat="server" Layout="Table" BoxConfigAlign="Stretch">
            <Items>
                <f:SimpleForm ID="SimpleForm1" ShowBorder="false" ShowHeader="false" runat="server"
                    BodyPadding="10px" Title="SimpleForm">
                    <Items>
                        <f:DropDownList ID="ddlDName" runat="server" Label="捐助名义">
                        </f:DropDownList>

                        <f:TextBox ID="txtDPerson" runat="server" Label="捐助人" Required="true" RequiredMessage="请填写捐助人">
                        </f:TextBox>

                        <%--<f:DropDownList ID="ddlDOrganization" runat="server" Label="捐助组织" >
                        </f:DropDownList>--%>

                        <f:TextBox ID="txtLinkMan" runat="server" Label="联系人" Required="true" RequiredMessage="请填写联系人">
                        </f:TextBox>
                        <f:TextBox ID="txtContactInformation" runat="server" Label="联系方式" Required="true" RequiredMessage="请填写联系方式">
                        </f:TextBox>
                        <f:TextBox ID="txtAddress" runat="server" Label="联系地址" Required="true" RequiredMessage="请填写联系地址">
                        </f:TextBox>
                        <f:TextBox ID="txtMapCoordinates" runat="server" Label="地图坐标" Required="true" RequiredMessage="请填写地图坐标">
                        </f:TextBox>

                        <f:DropDownList ID="ddlType" runat="server" Label="类型" AutoPostBack="true" OnSelectedIndexChanged="ddlType_SelectedIndexChanged">
                        </f:DropDownList>

                        <f:TextBox ID="txtName" runat="server" Label="名称" Required="true" RequiredMessage="请填写名称">
                        </f:TextBox>
                        <f:DropDownList ID="ddlName" runat="server" Label="名称">
                        </f:DropDownList>


                        <f:NumberBox ID="txtNum" Required="true" Label="数量" runat="server" RequiredMessage="请填写数量">
                        </f:NumberBox>

                        <f:DatePicker runat="server" Required="true" Label="捐助有效期" DateFormatString="yyyy-MM-dd" ID="txtEffectiveDate" ShowRedStar="True">
                        </f:DatePicker>

                        <f:DropDownList ID="ddlDFrom" runat="server" Label="捐助形式">
                        </f:DropDownList>
                        <f:DropDownList ID="ddlPurpose" runat="server" Label="资助用途">
                        </f:DropDownList>

                        <f:TextArea ID="txtDExplain" runat="server" Label="用途说明" Required="true" ShowRedStar="true" RequiredMessage="请填写用途说明">
                        </f:TextArea>

                        <f:DropDownList ID="ddlState" runat="server" Label="状态" Readonly="true">
                        </f:DropDownList>

                        <f:Label ID="lbContent" runat="server" LabelAlign="right" Text="描述："></f:Label>
                         <f:ContentPanel ID="ContentPanel1" runat="server" ShowBorder="false" ShowHeader="false">
                            <script type="text/plain" id="editor"></script>
                        </f:ContentPanel>
                    </Items>
                </f:SimpleForm>
            </Items>
            <Toolbars>
                <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                    <Items>
                        <f:Button ID="btnSaveClose" ValidateForms="SimpleForm1" Icon="SystemSaveClose"
                            OnClick="btnSaveClose_Click" runat="server" Text="保存并关闭">
                        </f:Button>
                        <f:ToolbarSeparator ID="ToolbarSeparator2" runat="server">
                        </f:ToolbarSeparator>
                        <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                            Text="关闭" DisableControlBeforePostBack="True">
                        </f:Button>
                    </Items>
                </f:Toolbar>
            </Toolbars>
        </f:Panel>
    </form>
</body>
</html>
<script>
    var editorContent = '<%=EditorContent%>';

    var ue = UE.getEditor("editor", {
        initialFrameWidth: '100%',
        initialFrameHeight: '400px',
        enableAutoSave: false,
        saveInterval: 1000000,
        elementPathEnabled: false,
        autoHeightEnabled: false
    });

    ue.ready(function () {
        if (editorContent) {
            ue.setContent(editorContent);
        }
    });

    function UESync() {
        var editor = UE.getEditor('editor')
        editor.sync();
        return true;
    }
</script>

